package com.github_dididipapa.mallsearch.constant;

import org.elasticsearch.client.RequestOptions;

/**
 * @description: ElasticSearch常量类
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/07/03  12:35
 */
public enum ElasticSearchOptionsConstant {
    COMMON_OPTIONS(RequestOptions.DEFAULT);

    private RequestOptions option;

    ElasticSearchOptionsConstant(RequestOptions option){
        RequestOptions.Builder builder = option.toBuilder();
        this.option = builder.build();
    }

    public RequestOptions getOption(){
        return option;
    }
}
